<?php
$a =
    [
        'errCode' => '200',
        'data' => [
            [
                'id'=>1,
                'name'=>'小玲',
                'score'=>[
                    'math'=>80,
                    'english'=>70
                ],
            ],
            [
                'id'=>2,
                'name'=>'小强',
                'score'=>[
                    'math'=>80,
                    'english'=>70
                ],
            ],
        ],
        'msg'=>'获取列表成功'
    ]
;

//获取一个字符串里面所有的数字，我越来越懵逼了，正则
function getNum($s)
{
    preg_match_all('/\d+/', $s, $matches);
    return $matches;
}

$s = 'q13we123fht23g1rgw4436';
var_dump(getNum($s));

